module tb_coe_upgrade;
parameter length = 16;

reg clk;
reg rst_n;
reg signed [length-1:0] IS;
reg signed [length-1:0] error_distance;

wire  signed [length-1:0]	W;

coe_upgrade
	#(length)
	coe_upgrade_u0
	(	
		.clk				(clk			),	
		.rst_n				(rst_n			),	
		.IS					(IS				),
		.error_distance		(error_distance	),			
	
		.W  				(W  			)
	);

always #5 clk = ~clk;

initial	begin
	clk = 0;
	rst_n = 0;
	#25
	rst_n = 1;
	IS = 32765;
	error_distance = 32765;
	#10
	$display("this is display %d",W);
end

initial begin
	$monitor("%d",W);
end


endmodule